<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="lc-block toggled" id="l-login"
	data-ng-class="{'toggled':lctrl.login === 1}">
	<h1 class="lean">尚好课</h1>
          <?php $form = ActiveForm::begin(['id' => 'login']); ?>
    	<div class="input-group m-b-20">
		<span class="input-group-addon"> <i class="zmdi zmdi-account"></i>
		</span>
		<div class="fg-line">
    			 <?= $form->field($model, 'username')->textInput(['autofocus' => true])->label(false)?>
    		</div>
	</div>

	<div class="input-group m-b-20">
		<span class="input-group-addon"> <i class="zmdi zmdi-male"></i>
		</span>
		<div class="fg-line">
    			 <?= $form->field($model, 'password')->passwordInput(['placeholder'=>'请输入密码'])->label(false)?>
    		</div>
	</div>

	<div class="clearfix"></div>

	<div class="checkbox">
		<label> <input type="checkbox" id="loginform-rememberme"
			name="AdminLogin[rememberMe]" value="1"> <i class="input-helper">
				保持登录状态 </i>
		</label>
	</div>

	<a href="javascript:;" onclick="login.submit();"
		class="btn btn-login btn-danger btn-float"> <i
		class="zmdi zmdi-arrow-forward"></i>
	</a>

</div>
<?php ActiveForm::end(); ?>
